<template>
  <div>
      <div
      style="margin-top:10px;"
      class="list clearfin"
      v-for="(item,index) in deTailis "
      :key="index"
    >
      <div class="item">
        <img :src="item.al.picUrl" />
        <div>
          <div class="main">{{item.al.name}}</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      deTailis: []
    }
  },
  mounted () {
    this.$api.MusiDetails({
      id: this.$route.params.id
    }).then(res => {
      this.deTailis = res.playlist.tracks
    })
  }
}
</script>

<style scoped>
.list {
    width: 100%;
    height: 617px;
}

.list .item {
    float: left;
    width: 31.33%;
    padding: 0 10px;
    margin-bottom: 10px;
}

.clear-padding {
    padding: 0 !important;
}

.main {
    margin-top: 4px;
    font-size: 12px;
}

</style>
